/**
   Copyright 2012 Shakil Siraj (shakil.siraj@gmail.com)

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 */
package com.googlecode.objectify.test.dataloader.example.bookstore;

import com.googlecode.objectify.annotation.Index;

/**
 * @author Shakil Siraj (shakil.siraj@gmail.com)
 *
 */
public class Address {
    
    private String streetName;
    
    private String streetNumber;
    
    private String suburb;
    
    private String zipCode;
    
    private String state;
    
    @Index
    private String country;

    /**
     * Getter method for streetName
     * @return the streetName
     */
    public String getStreetName() {
        return streetName;
    }

    /**
     * Setter method for streetName
     * @param streetName the streetName to set
     */
    public void setStreetName(String streetName) {
        this.streetName = streetName;
    }

    /**
     * Getter method for streetNumber
     * @return the streetNumber
     */
    public String getStreetNumber() {
        return streetNumber;
    }

    /**
     * Setter method for streetNumber
     * @param streetNumber the streetNumber to set
     */
    public void setStreetNumber(String streetNumber) {
        this.streetNumber = streetNumber;
    }

    /**
     * Getter method for suburb
     * @return the suburb
     */
    public String getSuburb() {
        return suburb;
    }

    /**
     * Setter method for suburb
     * @param suburb the suburb to set
     */
    public void setSuburb(String suburb) {
        this.suburb = suburb;
    }

    /**
     * Getter method for zipCode
     * @return the zipCode
     */
    public String getZipCode() {
        return zipCode;
    }

    /**
     * Setter method for zipCode
     * @param zipCode the zipCode to set
     */
    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    /**
     * Getter method for state
     * @return the state
     */
    public String getState() {
        return state;
    }

    /**
     * Setter method for state
     * @param state the state to set
     */
    public void setState(String state) {
        this.state = state;
    }
    
    /**
     * Getter method for country
     * @return the country
     */
    public String getCountry() {
	return country;
    }

    /**
     * Setter method for country
     * @param country the country to set
     */
    public void setCountry(String country) {
	this.country = country;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
	String toString = "<address>\n";
	toString += "<streetName>" + getStreetName() + "</streetName>\n";
	toString += "<streetNumber>" + getStreetNumber() + "</streetNumber>\n";
	toString += "<suburb>" + getSuburb() + "</suburb>\n";
	toString += "<state>" + getState() + "</state>\n";
	toString += "<zipCode>" + getZipCode() + "</zipCode>\n";
	toString += "<country>" + getCountry() + "</country>\n";
	toString += "</address>\n";
	
        return toString;
    }
    

}
